package com.micro.ai.template.dto.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Data
@Schema(description = "版本响应")
public class VersionDTO {

    @Schema(description = "主键ID")
    private String id;

    @Schema(description = "模板ID")
    private String templateId;

    @Schema(description = "版本号", example = "1.0.0")
    private String version;

    @Schema(description = "版本描述")
    private String versionDescription;

    @Schema(description = "基础系统提示词")
    private String baseSystemPrompt;

    @Schema(description = "基础提示词模板")
    private String basePromptTemplate;

    @Schema(description = "输入Schema")
    private Map<String, Object> inputSchema;

    @Schema(description = "输出Schema")
    private Map<String, Object> outputSchema;

    @Schema(description = "配置Schema")
    private Map<String, Object> configSchema;

    @Schema(description = "默认参数")
    private Map<String, Object> defaultParameters;

    @Schema(description = "能力列表")
    private List<String> capabilities;

    @Schema(description = "是否活跃版本")
    private Boolean isActive;

    @Schema(description = "是否稳定版本")
    private Boolean isStable;

    @Schema(description = "发布说明")
    private String releaseNotes;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private LocalDateTime createdAt;
}

